import { getToken, setToken, removeToken } from "@/utils/auth";
import { defineStore } from "pinia";


const useSchoolStore = defineStore("school", {
  state: () => ({
    token: getToken(),
    schoolCanteen: [],// 学校食堂信息
    allCanteen: [],// 学校所有食堂和店家信息
  }),
  actions: {
    addSettlement(val) {
      this.settlement = val
    },
    addCurrentOrderId(val) {
      this.currentOrderId = val
    }
  }, persist: true,
});

export default useSchoolStore;
